<template>
	<div class="ion-view capital" id="capital">

	</div>
</template>

<script>
//	import socket from '../../modules/socket' //这里引入
//	import store from '../../vuex/store'

//	import {swiper,swiperSlide} from 'vue-awesome-swiper'
//	import {mapGetters} from 'vuex'

	export default {
		name: 'capital',
		data() {
			return {
				banners: [],
				parentMsg: '33333'
			}
		},
		components: {
		}, //这里注册
		methods: {
			c_socket: function() {

			},
			addAtLast: function() {
				alert("是否打开模态框", 1).done(function(data) {
					if(data == 'ok') {
						store.dispatch('changeCount', 9)
						console.log(store)
					}
				});
			},
			change_t_t: function(type) {
				this.transaction_tag = type;
			},
			change_t_s: function(type) {
				this.transaction_status = type;
			},
			incrementTotal: function(type) {
				//				console.log(type)
			},
			incrementTotalee: function(type) {
				//				console.log(type)
			},
			clickParent: function() {
				console.log(this.$router.go)
//				this.$router.go(-1)
				this.$router.push({ path: 'market' })
			}
		},
		mounted() {
//			var that = this;
//			//获取banner
//			this.lh_http('post', "showing/Banners", {
//					type: 'h5',
//				}).done(function(data) {
//					//					console.log(data)
//					that.banners = data.banners;
//					//					console.log(_self.banners)
//				})
//				//获取深度
//			store.dispatch('sned', {
//				channel: 'sub_spot_btc_cny_dailydata'
//			})

		},
//		computed: {
//			...mapGetters({
//				socket_sned: 'getsocket_sned',
//			})
//		},
		beforeRouteLeave(to, from, next) {
			//	导航离开该组件的对应路由时调用
			//	可以访问组件实例 `this`
			console.log('宝宝离开这个页面了000000000'+from)
			//	next(to)
			//	this.$route.route.go('/404')
			next();
		}
		

	}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
	.my-swipe {
		height: 50px;
		text-align: center;
		overflow: hidden;
		background: white;
	}
	
	.silde img {
		width: 100%;
		height: 50px;
	}
	
	.transaction_tag {
		height: 50px;
	}
	
	.transaction_tag div {
		float: left;
		width: 50%;
		text-align: center;
		height: 50px;
		line-height: 50px;
		color: silver;
	}
	
	.transaction_tag .active {
		border-bottom: solid 3px #1670b1;
		color: #000;
	}
	
	.transaction_main {
		box-shadow: 2px 2px 7px #888;
		border-radius: 2px;
		width: 100%;
		background: #fff;
		position: relative;
		margin-top: -180px;
		z-index: 1;
	}
	
	.transaction_main label:nth-child(1) {
		margin: 10px;
		float: left;
		font-weight: 400;
		font-size: 14px;
		line-height: 1.42857;
	}
	
	.transaction_main tr td div {
		height: 45px;
	}
	
	.transaction_main tr td .xj {
		padding: 0 5px;
		overflow: auto;
	}
	
	.transaction_main tr td .xj div {
		padding: 0 5px;
		float: left;
		width: 50%;
	}
	
	.transaction_main tr td .xj div input {
		width: 100%;
		margin: 0;
		height: 34px !important;
		padding: 0;
	}
	
	.transaction_main tr td:nth-child(1) {
		background: #f8f8f8;
		width: 25px;
		vertical-align: middle;
		padding: 0 10px;
		color: #a9a7a7;
		border-right: 5px solid #f8f8f8;
	}
	
	.transaction_main tr .active {
		background: #fff!important;
		border-right: 5px solid #1670b1!important;
	}
	
	.login_status {
		height: 180px;
		background: rgba(192, 192, 192, .54);
		text-align: center;
		line-height: 180px;
		font-size: 30px;
		color: #fff;
	}
</style>